public class Test0912 {
    public static void main(String[] args) {
        int sum = 0;
        for (int i = 1; i <= 100; i++) {
            sum +=i;
        }
        System.out.println(sum);
        int sum1 = 0;
        for (int i = 100; i <200 ; i++) {
            if (i%3==0){
                sum1 += i;
            }
        }
        System.out.println(sum1);

        int sum2 = 0;
        int i = 1;
        while(i<=100){
           sum2 +=i;
           i++;
        }
        System.out.println(sum2);
    }
}
